/*
 * @Author: Li Zengkun
 * @Date: 2022-09-12 19:35:14
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-16 13:42:24
 * @Description: 
 */
import axios from 'axios'
let upload = axios.create({
    headers: {
        ContentType: 'multipart/form-data'
    }
})

// 删除图片
const remove = (data) => axios.post(`/upload/remove`, data)

// 富文本编辑器图片上传
const editor = (data) => axios.post(`/upload/editor`, data)

// 通用图片上传
const common = (data) => axios.post(`/upload/common`, data)

export default {
    remove,
    editor,
    common
}